#ifndef XMLTREEWIDGET_H
#define XMLTREEWIDGET_H

#include <BImage>
#include <BXmlNode>
#include <BTreeWidget>

using namespace BWE;

class XmlTreeWidget : public BTreeWidget
{
public:
	XmlTreeWidget(BWidget* parent = 0);
	~XmlTreeWidget();

	void reset(BXmlNode* xml);

protected:
	BTreeItem* createTreeItem(BXmlNode* node);

protected:
	virtual void styleEvent(const BEvent& event);

private:
	BIconHolder			_xmlNodeImage;
	BIconHolder			_htmlItemImage;
};

#endif